<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>

	</head>
	
	<body>	
	<h6><kbd>&nbsp;{$link['id']?'修改':'添加'}友情链接&nbsp;</kbd></h6>

			<form action="{:U(MODULE_NAME.'/Links/insertAndUpdateHandle')}" class="has-success alert alert-info" method="post">
				<input type="hidden" name="id" value="{$link.id}">
				<label for="title" >友情链接名称</label>
				<input type="text" name="name" value="{$link.name}" id="title" required class="form-control" placeholder="请输入友情链接名称" />
				<label for="href" >链接地址</label>
				<input type="text" name="href" id="href" class="form-control" required  value="{$link.href}"  placeholder="请输入链接地址" />
				<label for="orders" >序号（优先级）</label>
				<input type="number" name="orders" value="{$link.orders|default=1}"  id="orders" class="form-control" value="1" />
			
				<label for="ishide" >是否隐藏</label>	<br />
				
		          	<eq name="link.ishide" value="y">
		          		    <input type="checkbox" name="ishide" checked data-on-text="是"  value="y" data-off-text="否"  data-toggle="switch" data-on-color="danger" data-off-color="warning" />
						<else />
							 <input type="checkbox" name="ishide"  data-on-text="是" value="y" data-off-text="否"  data-toggle="switch" data-on-color="success" data-off-color="warning" />
		          	</eq>
		       
		          	
								<br />	<br />
					<input type="submit" class="btn btn-sm btn-danger" value="{$link['id']?'修 改':'添 加'}" />
					<input type="submit" class="btn btn-sm btn-info" formnovalidate formaction="{:U(MODULE_NAME.'/Links/index')}" value="返 回" />
			</form>
			
			
	</body>		

</html>
